package com.bjpowernode.query;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 接收表单传入的参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserQuery {

    private Integer id;

    @NotEmpty(message = "登录账号不能为空")
    private String loginAct;

    @Size(min = 6, max = 16, message = "密码长度必须在6-16位之间")
    private String loginPwd;

    private String name;

    private String phone;

    private String email;

    private Integer accountNoExpired;

    private Integer credentialsNoExpired;

    private Integer accountNoLocked;

    private Integer accountEnabled;
}
